package com.jensen.mapper.base;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Jensen on 2016/10/25.
 */
public interface BaseMapper<T,ID extends Serializable> {
    T save(T entity);
    void delete(ID id);
    T findOne(ID id);
    List<T> findAll();
    T update(T entity);
}
